import service from '@/utils/request'

export const useOrderManagementApi = (id: number) => {
	return service.get('/iot/management/' + id)
}

export const useOrderManagementSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/iot/management', dataForm)
	} else {
		return service.post('/iot/management', dataForm)
	}
}